
package com.bei_en.teacher.admin.model.questions.vo;

import java.util.*;

import com.bei_en.teacher.admin.model.article.bean.ArticleType;
import com.bei_en.teacher.admin.model.questions.bean.QuestionsArticle;
import com.bei_en.teacher.admin.model.BaseVo;

import javax.validation.constraints.*;

import org.hibernate.validator.constraints.*;

import java.math.BigDecimal;

/**
 * 用于前端页面数据传递
 * 
 * @author Guocg
 * @date 2016-8-21 21:15:34
 */
public class QuestionsArticleVo extends BaseVo {

    private QuestionsArticle questionsArticle;

    public QuestionsArticleVo() {

    this.questionsArticle = new QuestionsArticle();
    }

    public QuestionsArticleVo(QuestionsArticle questionsArticle) {

    this.questionsArticle = questionsArticle;
    }

	public ArticleType getArticleTypes() {
		return questionsArticle.getArticleTypes();
	}

	public void setArticleTypes(ArticleType articleTypes) {
		this.questionsArticle .setArticleTypes(articleTypes);
	}
    public QuestionsArticle getQuestionsArticle() {

    return this.questionsArticle;
    }
    
    public void setQuestionsArticle(QuestionsArticle questionsArticle) {

    this.questionsArticle=questionsArticle;
    }

        public Integer getId() {
            return this.questionsArticle.getId();
        }
        public void setId(Integer id) {
            this.questionsArticle.setId(id);
        }
        
        public void setId(Integer value) {
    	this.questionsArticle.setId(value);
        }
	
    public Integer getId() {
        return this.questionsArticle.getId();
    }
        
        public void setTitle(String value) {
    	this.questionsArticle.setTitle(value);
        }
	@Length(max=255)
    public String getTitle() {
        return this.questionsArticle.getTitle();
    }
        
        public void setContent(String value) {
    	this.questionsArticle.setContent(value);
        }
	@Length(max=65535)
    public String getContent() {
        return this.questionsArticle.getContent();
    }
        
        public void setQuestionsType(Integer value) {
    	this.questionsArticle.setQuestionsType(value);
        }
	
    public Integer getQuestionsType() {
        return this.questionsArticle.getQuestionsType();
    }
        
        public void setArticleType(Integer value) {
    	this.questionsArticle.setArticleType(value);
        }
	
    public Integer getArticleType() {
        return this.questionsArticle.getArticleType();
    }
        
    public void setCreateTime(Date value) {
        this.questionsArticle.setCreateTime(value!=null ? (int) (value.getTime()/1000) : 0);
    }

	 public Date getCreateTime() {
	     Integer time=this.questionsArticle.getCreateTime();
	     if (time!=null&&time!=0)
		    return new Date(Long.valueOf(time)*1000);
		else
		    return null;
	    }
    


}